package com.fancyy.scm.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Created by huangyin on 2019/1/1.
 */

public class ProgressTracking {

    public String cartonNo;
    public String model;
    public String packageQty;
    public String currentQty;
    public List<ProgressTrackingItem> shoesInfo;

    public class ProgressTrackingItem {
        @SerializedName("modelNo")
        public String eosNo;
        public String color;
        public String size;
        public String qty;
        @SerializedName("currentQty")
        public String cur;

        public String getPercent() {
            double percent = Double.parseDouble(cur) / Double.parseDouble(qty) * 100;
            return ((int)percent) + "";
        }
    }
}
